from pygame.locals import * #@UnusedWildImport
from helpers import * #@UnusedWildImport

class MenuItem(pygame.sprite.Sprite):

    def __init__(self, number, total, image = None, path = 'menu\Quit.png'):
        pygame.sprite.Sprite.__init__(self) 
        
        if image == None:
            self.image, self.rect = load_image(path,(0,0,0))
        else:
            self.image = image
            self.rect = image.get_rect()
        
        self.x_pos=410 - (15*number-1)
        self.y_pos=100 + (250/total)*number 
        
        self.rect.topleft = [self.x_pos, self.y_pos]
        
    def update(self):
        pass
    
        